import request from '@/utils/request'

// 查询视频课程列表
export function listVideoke(query) {
  return request({
    url: '/ziliao/videoke/list',
    method: 'get',
    params: query
  })
}

// 查询视频课程详细
export function getVideoke(id) {
  return request({
    url: '/ziliao/videoke/' + id,
    method: 'get'
  })
}

// 新增视频课程
export function addVideoke(data) {
  return request({
    url: '/ziliao/videoke',
    method: 'post',
    data: data
  })
}

// 修改视频课程
export function updateVideoke(data) {
  return request({
    url: '/ziliao/videoke',
    method: 'put',
    data: data
  })
}

// 删除视频课程
export function delVideoke(id) {
  return request({
    url: '/ziliao/videoke/' + id,
    method: 'delete'
  })
}
